package com.yigo.cuc.api.customer;

import com.yigo.cuc.api.customer.query.CustomerListQuery;
import com.yigo.cuc.api.customer.resp.CustomerListResp;
import com.yigo.framework.http.Q;
import com.yigo.framework.http.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.*;

/**
 * @author chenzl
 */
public interface CustomerQueryFeign {
    /**
     * 用户列表
     * @param q
     * @return
     */
    @PostMapping("cus/customer/queryCustomerList")
    R<List<CustomerListResp>> queryCustomerList(@RequestBody @Valid Q<CustomerListQuery> q);
    /**
     * 用户分页
     * @param q
     * @return
     */
    @PostMapping("cus/customer/queryCustomerPage")
    R<List<CustomerListResp>> queryCustomerPage(@RequestBody @Valid Q<CustomerListQuery> q);
}
